package com.common.test;

import org.testng.annotations.BeforeClass;

import com.common.util.BrowserSetupConfig;
import com.common.util.LoginUtil;
import com.common.util.WebDriverUtil;

	/**
		@author 王嘉犇
		@name 前台测试基类
	 */

public class FrontTestBase extends UITestBase {
	
	@BeforeClass
	public void beforeclass() throws Exception{
		log.info("===============BeforeClass===============");
		if(BrowserSetupConfig.REMOTEORNOT==0){
			KillProcess.killprocess();
		}
        log.info("init Driver");
        driver = WebDriverUtil.initWebDriver();
        openurl(LoginUtil.JUBAOPENURL);
        FrontLogin lg = new FrontLogin(this);
        lg.frontlogin(LoginUtil.FRONTUSERNAME, LoginUtil.FRONTPASSWORD);
	}
}
